<template>
  <div class="footer flx-center">
    <a href=""> {{ company }} </a>
  </div>
</template>
<script lang="ts" setup>
import { ref, onMounted } from "vue";
import { getjgglmessage } from "@/api/modules/jggl";
onMounted(() => {
  getCompany();
});
const company = ref("");
const getCompany = async () => {
  const res = (await getjgglmessage()) as any;
  console.log(res);
  company.value = res.companyName;
};
// // 获取当天时间的函数
// const getCurrentDate = () => {
//   const today = new Date();
//   const year = today.getFullYear();
//   const month = String(today.getMonth() + 1).padStart(2, "0"); // 月份从0开始
//   const day = String(today.getDate()).padStart(2, "0");
//   return `${year}-${month}-${day}`; // 格式化为 YYYY-MM-DD
// };
// const currentDate = getCurrentDate();
</script>
<style scoped lang="scss">
@import "./index.scss";
</style>
